/**
 * Copyright (C) 2021 - 2031 O-Cubes Co., Ltd.
 */

/****************************************************************
 *  @file    datetime.h
 *  @brief   Date time definition header file
 *  @version v1.0
 *  @date    03. Apr. 2023
 ****************************************************************/

#ifndef __DATETIME_H__
#define __DATETIME_H__

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct datetime Datetime_t, *Datetime_t_Ptr;

/// Datetime structure
struct datetime {
	///millisecond
	int32_t tm_ms;
	/// Second
	int32_t tm_sec;
	/// Minute
	int32_t tm_min;
	/// Hour
	int32_t tm_hour;
	///Day of the month
	int32_t tm_mday;
	/// Month of the year
	int32_t tm_mon;
	/// Year, should add 1900
	int32_t tm_year;
	/// Day of the week
	int32_t tm_wday;
	/// Day of the year
	int32_t tm_yday;
	/// Is daylight saving time ?
	int32_t tm_isdst;
};

#ifdef __cplusplus
}
#endif

#endif /* __DATETIME_H__ */

